import { AirApi } from './airpower/config/AirApi'
import { AirConfig } from './airpower/config/AirConfig'

App<IAppOption>({
  globalData: {},
  async onLaunch() {
    AirConfig.appKey = 'spms-app'
    AirConfig.apiUrl = 'http://localhost:8080/'
    AirConfig.staticUrl = AirConfig.apiUrl

    AirConfig.login = () => {
      AirApi.navigateTo('/view/common/login/index')
    }
  },
})
